package cn.pattern.demo5;

import cn.pattern.demo3.Buyer;
import cn.pattern.demo3.TangXinBuyer;

/**
 * @auth wzy
 * @date 2023/10/10 16:58
 */
public class Test {
    public static void main(String[] args) {
        TangXinBuyer tangXinBuyer = new TangXinBuyer();

        Buyer proxy = IntermedirayFactory.create(tangXinBuyer);

        proxy.buyHouse();
    }
}
